function submitRegisterData() {

    let aesKey = CryptoJS.enc.Utf8.parse($("#aesKey").val());
    let encryptedData = CryptoJS.AES.encrypt($("#register-password").val(), aesKey, {
        mode: CryptoJS.mode.ECB,
        padding: CryptoJS.pad.Pkcs7
    });

    let data = {
        username: $("#register-username").val(),
        password: encryptedData.ciphertext.toString(),
        token: $("#token").val(),
        nickname: $("#register-nickname").val(),
        mobile: $("#register-mobile").val(),
        email: $("#register-email").val()
    };

    $.ajax({
        url: appCtx + "/userRegister/register",
        dataType: 'json',
        type: "post",
        data: data,
        success: function (data) {
            layer.msg(data.messages);
        }
    })


}


